package com.gxa.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@ApiModel("文章实体类")
public class Article {

    //文章标题
    @ApiModelProperty("文章标题")
    private String title;
    //文章类型
    @ApiModelProperty("文章类型")
    private String type;
    //关键字
    @ApiModelProperty("关键字")
    private String keyword;
    //文章简介
    @ApiModelProperty("文章简介")
    private String synopsis;
    //文章封面
    @ApiModelProperty("文章封面")
    private String cover;
    //文章内容
    @ApiModelProperty("文章内容")
    private String content;
    //发布渠道
    @ApiModelProperty("发布渠道")
    private String releaseWay;
    //发布频道
    @ApiModelProperty("发布频道")
    private String releaseChannel;

    //发布人
    @ApiModelProperty("发布人")
    private String releasePerson;

    //发布时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @ApiModelProperty("发布时间")
    private Date releaseTime;

    public Article() {
    }

    public Article(String title, String type, String keyword, String synopsis, String cover, String content, String releaseWay, String releaseChannel, String releasePerson, Date releaseTime) {
        this.title = title;
        this.type = type;
        this.keyword = keyword;
        this.synopsis = synopsis;
        this.cover = cover;
        this.content = content;
        this.releaseWay = releaseWay;
        this.releaseChannel = releaseChannel;
        this.releasePerson = releasePerson;
        this.releaseTime = releaseTime;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getSynopsis() {
        return synopsis;
    }

    public void setSynopsis(String synopsis) {
        this.synopsis = synopsis;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getReleaseWay() {
        return releaseWay;
    }

    public void setReleaseWay(String releaseWay) {
        this.releaseWay = releaseWay;
    }

    public String getReleaseChannel() {
        return releaseChannel;
    }

    public void setReleaseChannel(String releaseChannel) {
        this.releaseChannel = releaseChannel;
    }

    public String getReleasePerson() {
        return releasePerson;
    }

    public void setReleasePerson(String releasePerson) {
        this.releasePerson = releasePerson;
    }

    public Date getReleaseTime() {
        return releaseTime;
    }

    public void setReleaseTime(Date releaseTime) {
        this.releaseTime = releaseTime;
    }
}
